average of three numbers in python